import React, {Component} from 'react';
import { Redirect, Switch, Route } from "react-router-dom";

import H5Race from './pages/H5Race'
import H5WorkShop from './pages/H5WorkShop'
import H5ProductService from './pages/H5ProductService'
import H5DevService from './pages/H5DevService'
import H5DataService from './pages/H5DataService'
import H5TrainingCamp from './pages/H5TrainingCamp'


class App extends Component {
    render() {
        return (
            <div>
                <Switch>
                    {/* 数字化创新大赛 */}
                    <Route path="/race" component={H5Race} />
                    {/* 数字化转型工作坊 */}
                    <Route path="/workshop" component={H5WorkShop} />
                    {/* 开课吧企业服务产品 */}
                    <Route path="/service" component={H5ProductService} />
                    {/* 伴随式开发服务 */}
                    <Route path="/devservice" component={H5DevService} />
                    {/* 数字化人才服务 */}
                    <Route path="/dataservice" component={H5DataService} />
                    {/* 实战训练营 */}
                    <Route path="/training" component={H5TrainingCamp} />
                    

                    <Redirect to="/race"></Redirect>
                </Switch>
            </div>
        ) 
    }
}

export default App